<?php
/*
Template Name:DC_cms_Film_autoimage
Description:影视资讯类CMS模板...
Version:1.0
Author:舞城
Author Url:http://www.iphcn.com
Sidebar Amount:1
ForEmlog:5.1.2
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
require_once View::getView('module');
require_once View::getView('functions');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $site_title; ?></title>
<meta name="keywords" content="<?php echo $site_key; ?>" />
<meta name="description" content="<?php echo $site_description; ?>" />
<meta name="generator" content="emlog" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS"  href="<?php echo BLOG_URL; ?>rss.php" />
<?php
$cssTime = filemtime(TEMPLATE_PATH.'film.css');
?>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_URL; ?>film.css?t=<?php echo date('YmdGis',$cssTime) ?>" />
<script type='text/javascript' src='<?php echo TEMPLATE_URL; ?>js/jquery.min.js'></script>
<script type='text/javascript' src='<?php echo TEMPLATE_URL; ?>js/film_v1.js'></script>
<script src="<?php echo BLOG_URL; ?>include/lib/js/common_tpl.js" type="text/javascript"></script>
<script src="<?php echo TEMPLATE_URL; ?>ibox/jquery.colorbox.js"></script>
<script>
			$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$(".group1").colorbox({rel:'group1'});
				$(".group2").colorbox({rel:'group2', transition:"fade"});
				$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
				$(".group4").colorbox({rel:'group4', slideshow:true});
				$(".ajax").colorbox();
				$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
				$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
				$(".inline").colorbox({inline:true, width:"85%"});
				$(".callbacks").colorbox({
					onOpen:function(){ alert('onOpen: colorbox is about to open'); },
					onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
					onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
					onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
					onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
				});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
		</script>
<!--[if IE 7]>
        <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_URL; ?>ie7.css">
<![endif]--> 
<?php doAction('index_head'); ?>
</head>
<body>
<div id="container">
<div id="headernavigation">
    <div class="navigation">
     <ul class="firstnav-menu">
        <?php if(ROLE == 'admin' || ROLE == 'writer'): ?>
	     <li class="page_item"><a href="<?php echo BLOG_URL; ?>admin/write_log.php">写日志</a></li>
	     <li class="page_item"><a href="<?php echo BLOG_URL; ?>admin/">管理中心</a></li>
	     <li class="page_item"><a href="<?php echo BLOG_URL; ?>admin/?action=logout">退出</a></li>
	    <?php else: ?>
	     <li class="page_item"><a href="<?php echo BLOG_URL; ?>admin/">登录</a></li>
	    <?php endif; ?>
     </ul>
           <div class="icon_holder">
              <a href="<?php echo BLOG_URL; ?>rss.php">
                 <img src="<?php echo TEMPLATE_URL; ?>images/rss.png" alt="Subscribe to our Rss" class="shareimg"  /></a>
				 <?php if($istwitter == 'y'):?>
              <a href="<?php echo BLOG_URL; ?>t/">
                 <img src="<?php echo TEMPLATE_URL; ?>images/twitter.png" alt="Follow us on Twitter!" class="shareimg" /></a>
				 <?php endif;?>
              <a href="http://www.facebook.com/">
                 <img src="<?php echo TEMPLATE_URL; ?>images/facebook.png" alt="Follow us on Facebook!" class="shareimg" /></a>
              <a href="http://www.youtube.com/user/">
                 <img src="<?php echo TEMPLATE_URL; ?>images/youtube.png" alt="Check out our Youtube!" class="shareimg"  /></a>
           </div><!-- #icon holder closer -->
    </div><!-- #navigation closer -->
</div><!-- #headernavigation closer -->
<div id="content">
  <div id="white_space">
    <div id="content_holder">
       <div id="head-er">
           <a href="<?php echo BLOG_URL; ?>">
                <img src="<?php echo TEMPLATE_URL; ?>images/logo.gif" border="0" alt="<?php echo $blogname; ?>" class="logo"  />
		   </a>
                     <div class="ad ">
<!-- 广告位：468x60-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6188876196041059";
/* 爱博客首页468x60 */
google_ad_slot = "1127121333";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
                     </div><!-- #ad 468x60 closer -->
       </div><!-- #header closer -->
       <div id="categories"><?php blog_navi();?></div><!-- #categories closer -->
<!-- SLIDER -->